#include "to_include/toolkit.h"
#include <iostream>

#include <gtest/gtest.h>

// Demonstrate some basic assertions.
TEST(HelloTest, BasicAssertions) {
  // Expect two strings not to be equal.
  EXPECT_STRNE("hello", "world");
  // Expect equality.
  EXPECT_EQ(7 * 6, 42);
}

// 在WORKSPACE文件夹
// $ g++ -o main.exe ./mini_proj/not_one_package/src/*.cpp -I ./ -I ./mini_proj/not_one_package/
// $ g++ -o main.exe ./mini_proj/not_one_package/src/main.cpp -I ./mini_proj/not_one_package/ -L ./bazel-bin/mini_proj/ -lmath
TEST(HelloTest, sum_of_array){
    std::vector<int> arr={1,2,3,4,5,10};
    EXPECT_EQ(sum_up(arr),1+2+3+4+5+10);
    EXPECT_EQ(find_max(arr),10);
}